* {
    padding: 0;
    margin: 0;
    box-sizing: border-box; /* 確保padding不影響整體寬度 */
}

header {
    background-color: #ffffff;
    height: 80px;
    width: 100%;
    position: fixed;
    display: flex; /* 優化導航佈局 */
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem; /* 添加內距，適應小螢幕 */
    z-index: 1000; /* 確保header在最上層 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

header h1 {
    color: #000000; /* 黑色字 */
    line-height: 80px;
    background-image: url('images/eboam標準字.png');
    background-repeat: no-repeat;
    background-position: center;
    width: clamp(200px, 20vw, 350px);
    background-size: 50%;
    text-indent: -9999px;
}

header ul {
    display: flex;
    align-items: center;
    list-style: none;
    font-size: clamp(14px, 2vw, 18px);
}

header li {
    margin-right: clamp(1vw, 4vw, 4vw);
}

header a {
    color: #000000; /* 黑色字 */
    text-decoration: none;
}

header a:hover {
    color: #ff7e47; /* 懸停橙色 */
}

/* 首頁header樣式（黑色底白色字） */
header.首頁-header {
    background-color: rgb(0, 0, 0); /* 黑色底 */
}

header.首頁-header h1 {
    color: #ffffff; /* 白色字 */
    background-image: url('images/標準字.png');
}

header.首頁-header a {
    color: #ffffff; /* 白色字 */
}

header.首頁-header a:hover {
    color: #ff7e47; /* 懸停橙色 */
}

footer {
    background-color: #f1f1f1;
    color: #5c5c5c;
    min-height: 20vh;
    font-family: "Inter", sans-serif;
    display: flex;
    justify-content: space-between; /* 左邊內容靠左，右邊靠右 */
    align-items: flex-start; /* 內容靠頂部 */
    padding: 2rem; /* 添加內距 */
    box-sizing: border-box;
}

.左邊區塊 {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* 圖片與文字頂部對齊 */
    margin-top: 0.5rem;
    margin-left: 5rem;
}

.eboam-logo {
    width: 150px; /* 縮小圖片，可調整 */
    height: auto;
    margin-bottom: 0.3rem;
}

.文字區 {
    text-align: left; /* 文字靠左對齊 */
}

.文字區 .email {
    font-size: 20px; /* 電子郵件文字大小 */
    margin: 0;
    line-height: 1.5;
}

.文字區 .copyright {
    font-size: 14px; /* 版權文字大小 */
    margin: 0;
    line-height: 1.5;
    margin-top: 1rem;
}

.社群-icon {
    width: 200px; /* 設定icon大小，可調整 */
    height: auto;
    margin-right: 5rem;
    margin-top: 1rem;
}

.影片資訊 {
    min-height: 100vh; /* 保持最小高度為視窗高度 */
    display: flex; /* 新增：使用 Flexbox */
    justify-content: center; /* 新增：水平置中 */
    align-items: center; /* 新增：垂直置中 */
}

.影片資訊 img {
    width: 1000px; /* 保持寬度 */
    height: auto; /* 高度自動調整，保持比例 */
    display: block; /* 保留，確保圖片為塊級元素 */
    margin-top: 5rem;
}

.user-icon {
    display: inline-block;
    width: 30px;
    height: 30px;
    background-image: url('images/user.png');
    background-size: cover;
    background-position: center;
    cursor: pointer;
}

/* 調整導航項樣式，確保 ICON 垂直置中 */
header nav ul li#login-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-menu {
    display: none;
    position: absolute;
    top: 60px; /* 位於 ICON 下方 */
    right: 10px; /* 靠右對齊 */
    background-color: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 120px;
}

.user-menu button {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    font-size: 14px;
    color: #5c5c5c;
    background-color: #ffffff;
    border: none;
    border-bottom: 1px solid #ccc;
    text-align: left;
    cursor: pointer;
    font-family: "Inter", sans-serif;
}

.user-menu button:last-child {
    border-bottom: none;
}

.user-menu button:hover {
    background-color: #ff914c;
    color: #ffffff;
}

@media (min-width: 1600px) {
    .影片資訊 img {
        width: 1500px; /* 增加寬度 */
        height: auto; /* 保持比例 */
        margin-top: 5rem; /* 調整上方間距 */
        margin-left: auto; /* 水平置中 */
        margin-right: auto; /* 水平置中 */
    }
}